home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 10990 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: newsbf02.news.aol.com!not-for-mail
  2. From: ctreen@aol.com (CTreen)
  3. Newsgroups: comp.lang.c
  4. Subject: Help! Random access files and Structure Arrays.
  5. Date: 21 Mar 1996 07:14:13 -0500
  6. Organization: America Online, Inc. (1-800-827-6364)
  7. Sender: root@newsbf02.news.aol.com
  8. Message-ID: <4irh6l$pvi@newsbf02.news.aol.com>
  9. Reply-To: ctreen@aol.com (CTreen)
  10. NNTP-Posting-Host: newsbf02.mail.aol.com
  11.  
  12. Help.. I've been working on a program that read and wrote a character
  13. array to a file. It let you update each member of the structure array and
  14. it used two files, the one you wanted to edit and a temp file to keep back
  15. up copies of the file until you made the changes to the array member of
  16. the structure array. Needless to say this was quite lengthy... I bought
  17. Turbo C++ the last month and a book on it yesterday.. while glancing
  18. through the book I found a small(5 page) section on Random access files. I
  19. made a small little program and well.. it bites. I have this little file
  20. that I'm willing to show someone who wants to help me. Basically I want to
  21. know how I can write and update each member of the array without adding to
  22. what's already there. I know this is confusing, if anyone would like to
  23. help me I would be very interested.
  24.  
  25. - Colin
  26.